﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace HowItWentDown
{
    class Crown:Obj
    {
        public Crown(Game1 game):base(game, MyMath.RandomRange(100,1500), 10, MyMath.RandomRange(100,1500), Global.LoadTexture("crown"), true, true, true)
        {
            this.scale = .3f;
        }
        public override void lateUpdate()
        {
            if (MyMath.Distance(pos, Global.Player.pos) < 20)
            {
                Global.Win = true;
                remove();
            }
            base.lateUpdate();
        }


    }


}
